/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.asportoonline.business.delegates;

import java.util.List;
import org.asportoonline.business.beans.ClienteManager;
import org.asportoonline.entities.Cliente;

/**
 *
 * @author fe
 */
public class ClienteManagerDelegate extends AbstractDelegate implements ClienteManager {

    @Override
    protected String getServiceName() {
        return "java:comp/env/ejb/ClienteManager";
    }

    public void inserisciCliente(Cliente c) {
        ((ClienteManager)getService()).inserisciCliente(c);
    }

    public List<Cliente> elencoClienti() {
        return ((ClienteManager)getService()).elencoClienti();
    }

    public Cliente cercaCliente(long id) {
        return ((ClienteManager)getService()).cercaCliente(id);
    }

    public Cliente cercaCliente(String email) {
        return ((ClienteManager)getService()).cercaCliente(email);
    }

    public void aggiornaCliente(Cliente cliente) {
        ((ClienteManager)getService()).aggiornaCliente(cliente);
    }
    
    
    
}
